import { UPDATE_SELECTION, UPDATE_CURSOR } from '../reducers/editor-status.js';

/**
 * 更新编辑器选中状态
 * @param  {Object}     props
 * @return {Object}
 */
export function updateSelection(props) {
    return {
        type: UPDATE_SELECTION,
        payload: props
    };
}

/**
 * 更新编辑器光标状态
 * @param  {Object}     props
 * @return {Object}
 */
export function updateCursor(props) {
    return {
        type: UPDATE_CURSOR,
        payload: props
    };
}